home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / futils / futils~1 / src / file31s.zoo / file3.1 / makefile < prev    next >
Encoding:
Makefile  |  1991-11-02  |  5.1 KB  |  141 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Master Makefile for the GNU file utilities.
  3. # Copyright (C) 1986, 1988-1991 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. SHELL = d:/gnu/bin/bash.ttp
  20.  
  21. #### Start of system configuration section. ####
  22.  
  23. srcdir = .
  24.  
  25.  
  26. # If you use gcc, you should either run the fixincludes script that
  27. # comes with it or else use gcc with the -traditional option.  Otherwise
  28. # ioctl calls will be compiled incorrectly on some systems.
  29. CC = cc
  30. AR = ar
  31. # Set RANLIB = echo if your system doesn't have or need ranlib.
  32. RANLIB = echo
  33.  
  34. # Things you might add to DEFS:
  35. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  36. # -DPOSIX        If you have POSIX.1 headers and libraries.
  37. #            Also need to define -DDIRENT.
  38. # -DUSG            If you have System V/ANSI C string and
  39. #            memory functions and headers, ndir.h,
  40. #            sys/sysmacros.h, no sys/times.h, fcntl.h,
  41. #            getcwd.
  42. # -DSIGTYPE=int        If your signal handlers return int, not void.
  43. # -DDIRENT        If you have dirent.h.
  44. # -DSYSNDIR        Old Xenix systems (selects sys/ndir.h).
  45. # -DVOID_CLOSEDIR    If your closedir function returns void, not int.
  46. # -DMAJOR_IN_MKDEV    If major, minor, makedev are defined in sys/mkdev.h.
  47. # -DINT_16_BITS        If sizeof long > sizeof int.
  48. # -DVPRINTF_MISSING    If you lack vprintf function (but have _doprnt).
  49. # -DDOPRNT_MISSING    If you lack _doprnt function.  Also need to define
  50. #            -DVPRINTF_MISSING.
  51. # -DMKFIFO_MISSING    If you lack mkfifo system call, but have FIFOs.
  52. # -DFTRUNCATE_MISSING    If you lack ftruncate system call.
  53. # -DFCHMOD_MISSING    If you lack fchmod system call.
  54. # -DMVDIR=\"$(libdir)/mvdir\"
  55. #            If you lack rename system call.
  56. # -DST_BLOCKS_MISSING    If your `struct stat' lacks st_blocks and st_blksize.
  57. # -DUTIME_NULL_MISSING    If your utime system call does not use the
  58. #            current time when passed a null time pointer.
  59. # -DNEED_TZSET        If you lack ftime system call and
  60. #            need to call tzset to set the timezone.
  61. # Define zero or one of the following:
  62. # If no FS_* is defined, df will not link.
  63. # -DFS_MNTENT        If you use 4.3BSD getmntent to get filesystem info.
  64. # -DFS_GETMNT        If you use Ultrix getmnt to get filesystem info.
  65. # -DFS_STATFS        If you use 4.4BSD statfs to get filesystem info.
  66. # -DFS_USG_STATFS    If you use SVR3.2 statfs to get filesystem info.
  67. # -DFS_STATVFS        If you use SVR4 statvfs to get filesystem info.
  68.  
  69. DEFS =  -DDIRENT -DSTDC_HEADERS  -DFTIME_MISSING \
  70.         -DMKFIFO_MISSING -DFTRUNCATE_MISSING -DFCHMOD_MISSING
  71. LIBS = 
  72. LIBPROGS = 
  73.  
  74. CDEBUG = -g -O -fstrength-reduce
  75. CFLAGS =  $(CDEBUG) -I. -I../lib -I$(srcdir)/lib $(DEFS)
  76. LDFLAGS = 
  77.  
  78. prefix = /usr/local
  79.  
  80. # Where to install the executables.
  81. bindir = $(prefix)/gnubin
  82.  
  83. # Where to put mvdir, if your system lacks the rename system call.
  84. libdir = $(prefix)/lib
  85.  
  86. # Where to put the manual pages.
  87. mandir = $(prefix)/man/man1
  88. # Extension (not including `.') for the installed manual page filenames.
  89. manext = 1
  90.  
  91. #### End of system configuration section. ####
  92.  
  93. MDEFINES = bindir='$(bindir)' libdir='$(libdir)' mandir='$(mandir)' \
  94. manext='$(manext)' LIBS='$(LIBS)' LIBPROGS='$(LIBPROGS)' \
  95. AR='$(AR)' RANLIB='$(RANLIB)' \
  96. CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' CC='$(CC)'
  97.  
  98. DISTFILES = COPYING COPYING.LIB ChangeLog Makefile.in README configure
  99.  
  100. # Subdirectories to run make in for the primary targets.
  101. SUBDIRS = lib src man
  102.  
  103. all:
  104.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  105. .PHONY: all
  106.  
  107. install:
  108.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  109. .PHONY: install
  110.  
  111. tags:
  112.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  113. .PHONY: tags
  114.  
  115. TAGS:
  116.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  117. .PHONY: TAGS
  118.  
  119. clean:
  120.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  121. .PHONY: clean
  122.  
  123. distclean:
  124.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  125.     rm -f Makefile config.status
  126. .PHONY: distclean
  127.  
  128. realclean:
  129.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  130.     rm -f Makefile config.status
  131. .PHONY: realclean
  132.  
  133. dist:
  134.     echo fileutils-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q src/version.c` > .fname
  135.     rm -rf `cat .fname`
  136.     mkdir `cat .fname`
  137.     ln $(DISTFILES) `cat .fname`
  138.     for dir in $(SUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) $@; cd ..; done
  139.     tar chZf `cat .fname`.tar.Z `cat .fname`
  140.     rm -rf `cat .fname` .fname
  141.